package com.changanw.tienchin.channel.service;

import com.changanw.tienchin.channel.domain.Channel;
import com.baomidou.mybatisplus.extension.service.IService;
import com.changanw.tienchin.channel.domain.vo.ChannelVo;
import com.changanw.tienchin.common.core.domain.AjaxResult;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author changanw
 * @since 2023-11-15
 */
public interface IChannelService extends IService<Channel> {

  List<Channel> selectChannelList(ChannelVo channelVo);

  /**
   * 添加渠道
   * @param channelVo
   * @return
   */
  AjaxResult addChannel(ChannelVo channelVo);

  /**
   * 更新渠道
   * @param channelVo
   */
  AjaxResult updateChannel(ChannelVo channelVo);

  /**
   * 删除渠道
   * @param channelIds
   * @return
   */
  boolean deleteChannelByIds(Long[] channelIds);

  /**
   * 渠道导入
   * @param channelList
   * @param updateSupport
   * @return
   */
  String importUser(List<Channel> channelList, boolean updateSupport);

  AjaxResult channelAnalysis(ChannelVo channelVo);
}
